<script lang="ts" setup>
import { useAppStore } from '@/store'

const {
    windowHeight,
    customBarHeight,
    statusBarHeight
} = storeToRefs(useAppStore())

const richText = ref(null)

onLoad((options: any) => {
    console.log(options)
    if (options.richText) {
        richText.value = decodeURIComponent(options.richText)
    }
 
})

</script>

<template>
    <div class="detail">
        <rich-text :nodes="richText"></rich-text>
    </div>
</template>

<route lang="json">{
    "layout": "home",
    "style": {
    "navigationBarTitleText": "公告详情",
    "backgroundColorContent": "#f1f1f1"
    }
}</route>

<style lang="sass" scoped>
.detail
  padding: 32rpx
</style>
